﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/PageMorePublicity.Master" AutoEventWireup="true" CodeBehind="MorePagePublicity.aspx.cs" Inherits="ZHDJ.Web.MorePagePublicity" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/Resource/js/jquery/jquery.pagination.js"></script>
    <script src="Resource/js/common.js"></script>
    <script type="text/javascript">
        var pageSize = 20;
        $(function () {
            var totalCount = $("#ctl00_ContentPlaceHolder1_hfTotalCount").val();
            $("#pagination").pagination(totalCount, {
                num_edge_entries: 1, //边缘页数
                num_display_entries: 4, //主体页数
                callback: pageselectCallback,
                items_per_page: pageSize, //每页显示1项
                prev_text: " ",
                next_text: " ",
                link_to: "javascript:void(0);"
            });
            //num_edge_entries: 1, //边缘页数
            //num_display_entries: 4, //主体页数
            //callback: pageselectCallback,
            //items_per_page: pageSize, //每页显示1项
            //prev_text: " ",
            //next_text: " ",
            //link_to: "javascript:void(0);"
            function pageselectCallback(pageIndex, jq) {
                $.get("MorePagePublicity.aspx", {
                    pageIndex: pageIndex + 1,
                    pageSize: pageSize,
                    module: querystring("module"),
                    category: querystring("category"),
                    type:querystring("type"),
                    r: (new Date()).getTime()
                },
                function (data) {
                    if (data == null || data == "") {
                        data = "<li style=\"text-align:center;\">此栏目暂无信息</li>";
                    }
                    var $content = $(data);
                    $(".news_lb").html($content);
                });
                return false;
            }
        });

       
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:HiddenField ID="hfTotalCount" runat="server" Value="10" />
    <asp:HiddenField ID="hfModule" runat="server" />
    <asp:HiddenField ID="hfType" runat="server" />
    <div class="ny_box">
        <ul class="news_lb">
        </ul>


    </div>
    <asp:Literal ID="litpagination" runat="server" Visible="true">
    <div class="pagination">
            <div id="pagination" >
            </div>
        </div>
    </asp:Literal>
    <asp:Literal ID="ltContent" runat="server" Visible="true"></asp:Literal>
</asp:Content>

